Dynomotion

Group: DynoMotion Message: 9917 From: az9633@ymail.com Date: 8/6/2014
Subject: usb communication commands

Hello Tom:


Where would be the best place to look for examples of the USB commands for the Kflop with Snap Amp?


Do I understand correctly that K-Flop is a USB device and cannot initiate USB communication?


I'm designing a specific purpose CNC front end like the K CNC but with non-G code, non-buffered motion commands and executing multiple threads of C code. 

 

I need to be able to detect the initiation and completion (or not ) of a move.  I'm assuming there is a status word that indicates these things.


I also need to be able to display the axis position information found on K -CNC and use some of the diagnostic functions of K-motion.


Can you direct me please?


Group: DynoMotion Message: 9937 From: Tom Kerekes Date: 8/9/2014
Subject: Re: usb communication commands
Hi AZ,

Yes KFLOP is a USB device (not a Host).

Maybe you could describe in more detail your requirements.  Basically you can command moves from the PC or from within KFLOP.  It isn't clear which would make most sense for you.  Things within KFLOP are hard real-time things within the PC are not.  If a small occasional delay between moves is acceptable for your application then coding on the PC (in C#) might be easiest.  See the SimpleFormsCS example.

It isn't clear why you would need multiple C Threads.

Simple initiation of an independent move can be generated with an Axis Move command.  The CheckDone function can be used to test when the motion is complete.  Generally a motion can not be detected to fail unless you have a closed loop system and a following error occurs.  Otherwise a limit switch error might halt motion.

Regards
TK